package com.huaxin.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huaxin.dao.StudentDAO;
import com.huaxin.domain.StudentEntity;

/**
 * StudentEntity服务层
 * 
 * @author 薛琪
 * 
 */
@Service
public class StudentService {
	@Autowired
	private StudentDAO studentDAO;

	/**
	 * 根据学号查询学生信息
	 * 
	 * @param userName
	 * @return
	 */
	public StudentEntity queryStudentByUserNum(String userName) {
		return studentDAO.queryByUserNum(userName);
	}
}
